Documentation for class stretch_frame

Inherits from 	gadget 

Properties declared in stretch_frame 
	angle 

Class Methods declared in stretch_frame 
	new 
	new_from_file(path) 

Methods declared in stretch_frame 
	any 
		angle 
		rotate_by(delta_angle) 
		rotate_to(angle) 
		set_angle(angle) 
	get 
		angle 
	set 
		set_angle(rule) 

Class 
#begin_class
stretch_frame 
The class stretch_frame is a sub-class of the class gadget. 
A stretch-frame is a frame that you may resize without distorting the frame pattern.
#end_class

Properties 

#begin_property
angle 
Stores the angle of the stretch-frame. 
The angle is always between 0 and 359.
#end_property

Methods 

#begin_method
angle 
Returns the angle property of the stretch-frame.
#end_method

#begin_method
rotate_by(delta_angle) 
Sets the rotation of the stretch-frame to the current angle + delta_angle.
Returns self.
#end_method

#begin_method
rotate_to(angle) 
Sets the rotation of the stretch-frame to angle.
Returns self.
#end_method

#begin_method
set_angle(angle) 
Sets the angle property to angle. 
Returns self.
Note: It is better to use the rotate_to(angle) message.
#end_method

Class Methods 

#begin_class_method
new 
You should create new stretch-frames with the new_from_file message.
Ex:
{stretch_frame}:new
raises an exception
Exception:
Stretchframes should be created by reading in a stretchframe definition from a file: use the new_from_file class method instead! 
#end_class_method

#begin_class_method
new_from_file(path) 
Returns a new stretch-frame object with the stretch-frame from the file path.
#end_class_method